
public class bubble_sort {
	public void Bubble_sort(int array[], int n)
	{
		for (int i = 0; i < n; i++)
			for (int j = n - 1; j > 0; j--)
			if (array[j - 1] > array[j]) {
			int tmp = array[j - 1];
			array[j - 1] = array[j];
			array[j] = tmp;
			}
		}
	public void my_Bubble_sort(int array[], int n)
	{
		int i = n - 1;
		while (i > 0) {
		int fl = 0;
		for (int j = 0; j < i; j++)
		if (array[j + 1] < array[j]) {
		int tmp = array[j + 1];
		array[j + 1] = array[j];
		array[j] = tmp;
		fl = j;
		}
		i = fl;
		}
	}
}

